home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Compare(V37) Compare(V37)
-
-
- FFOORRMMAATT
- CCOOMMPPAARREE [[FFIILLEE11] _f_i_l_e] [[FFIILLEE22] _f_i_l_e] [[SSKKIIPP11] _n] [[SSKKIIPP22]
- _n] [QQUUIIEETT]
-
- TTEEMMPPLLAATTEE
- FFIILLEE11,,FFIILLEE22,,SSKKIIPP11//NN,,SSKKIIPP22//NN,,QQUUIIEETT//SS
-
- PPUURRPPOOSSEE
- To perform a byte-by-byte comparison of two files.
-
- SSPPEECCIIFFIICCAATTIIOONN
- CCOOMMPPAARREE compares the two files given by FFIILLEE11 and ffiillee22.
- If only one file is given, the default input is used for
- the other. It is an error if both FFIILLEE11 and FFIILLEE22 are
- omitted. CCOOMMPPAARREE makes no comment if the files are the
- same; if they differ, it reports the byte (in both decimal
- and hex) and line number at which the difference occured,
- or, that one file is an initial subsequence of the other.
- SSKKIIPP11 and SSKKIIPP22 are initial decimal byte offsets into
- FFIILLEE11 and FFIILLEE22 respectively. If the QQUUIIEETT switch is used,
- CCOOMMPPAARREE will print nothing for differing files; it will
- set the condition flag only. QQUUIIEETT does not suppress the
- printing of error messages.
-
- The condition flag, RC, is set to 0 for identical files, 5
- (WARN) for different files, and 10 (ERROR) for bogus argu
- ments like inaccessible files.
-
- EEXXAAMMPPLLEE
- If you want to express an offset in octal or hexadecimal,
- you can use EEVVAALL (see EEVVAALL(AmigaDOS)):
-
- 1> COMPARE Foo Bar `EVAL 0x1FE`
-
- SSEEEE AALLSSOO
- CCOOMMMMOONN(V37)
-
- UUNNIIXX EEQQUUIIVVAALLEENNTT
- ccmmpp(1)
-
- AAUUTTHHOORR
- Torsten Poulin (torsten@diku.dk)
-
- UUNNRREESSTTRRIICCTTIIOONNSS
- CCOOMMPPAARREE is free; anyone may redistribute copies of CCOOMMPPAARREE
- to anyone under the terms stated in the GNU General Public
- Licence, a copy of which accompanies each copy of CCOOMMPPAARREE.
-
- Torsten Poulin encourages you to improve and extend CCOOMM
- PPAARREE, and urges that you contribute your extensions to the
- world.
-
-
-
-
-
-
- Compare version 37.5 21 June 1993 1
-
-
-